@import "@/base.scss";

//css函数
@function tovmin($rpx) {
  //$rpx为需要转换的字号
  @return #{$rpx * 100 / 750}vmin;
}

.container-box {
  background-image: url(https://mc.qcloudimg.com/static/img/7da57e0050d308e2e1b1e31afbc42929/bg.png);
  background-color: #333;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  width: 100vw;
}

live-pusher {
  width: 100%;
  height: 100%;
}

live-player {
  width: 100%;
  height: 100%;
}

video {
  width: 100%;
  height: 100%;
}

.v-full {
  width: 100vw;
  height: 100vh;
}

.v-full2 {
  width: 100vw;
  // height: 123.07vw;
}

.v-main-video {
  width: 100vw;
  height: 100vh;
}

.v-sub-video {
  position: relative;
  display: inline-block;
  width: 30.65vw;
  height: calc(123.07vw / 3);
  margin-top: 2vw;
}

.v-sub-video-list {
  position: absolute;
  display: flex;
  width: 30.65vw;
  height: 123.07vw + 6vw;
  right: 0;
  bottom: 20vw;
  overflow: hidden;
  flex-direction: column-reverse;
}

.operate {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  right: 0;
  left: 0;
  bottom: 3vh;
  width: fit-content;
  height: 50px;
}

.operate-nolink {
  position: absolute;
  right: 0;
  left: 0;
  width: fit-content;
  height: 80px;
}

.img-box {
  position: relative;
  display: inline-block;
  height: 50px;
  width: 80px;
  vertical-align: middle;
}

.img-view {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
}

.loading {
  position: absolute;
  width: 100%;
  height: 100%;
}

.loading cover-image {
  position: absolute;
  top: calc(50% - 15px);
  left: calc(50% - 15px);
  width: 30px;
  height: 30px;
}

.close-ico {
  position: absolute;
  top: 0;
  right: 1vw;
  width: 55px;
  height: 55px;
  // text-align: center;
  // font-size: 24px;
  // color: #ffffff;
}

.close-ico:hover {
  color: #afafaf;
}

.close-ico-self {
  position: absolute;
  top: 10vh;
  right: 5vw;
  width: 70px;
  height: 70px;
}

// 语音直播的头像
.type-audio {
  width: 300px;
  height: 300px;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;

  .type-audio-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 8px solid #f8f8f8;
  }

  .type-audio-name {
    // width: 168px;
    width: 100%;
    height: 59px;
    font-size: 42px;
    font-family: ".PingFang SC";
    font-weight: 500;
    line-height: 59px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .type-audio-icon {
    position: absolute;
    top: 85%;
    right: 5%;
    width: 50px;
    height: 50px;
  }
}

.slider {
  width: 100vw;
  height: 60px; 
  position: absolute;
  top: 60%;
  left: 50%; 
  transform: translate(-50%,-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;

  .playIcon {
    width: 60px;
    height: 60px;
    margin-left: 30px;
  }

  .at-slider {
    width: 480px;
    height: 50px; 
    margin-left: 10px;

    .at-slider__inner {
      width: 100%;
      height: 100%;
    }

    slider {
      margin: 10px 0 0 !important;
      line-height: 50px;
    }
  }

  .audioTime {
    font-size: 20px;
    font-family: ".PingFang SC";
    font-weight: 400;
    line-height: 50px;
    color: #ffffff;
    margin-right: 30px;
  }
}
